import { addComponent, defineComponent, defineQuery, hasComponent } from '$lib/ecs';

export const Landscape = defineComponent('Landscape', {});

export const landscape = [
  [Landscape],
];

export const landscapeQuery = defineQuery([Landscape]);

export const makeLandscape = (world, e) => {
  addComponent(world, Landscape, e);
};

export const isLandscape = (world, e) => {
  return hasComponent(world, Landscape, e);
};
